package com.csmht.tododemo.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;


@Data
public class ToDoDTO {

    @JsonProperty("id")
    private Long id;

    @JsonProperty("title")
    private String title;

    @JsonProperty("message")
    private String message;

    @JsonProperty("status")
    private int status;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    @JsonProperty("ddl")
    private LocalDateTime ddl;

    @JsonProperty("classs")
    private List<Long> classs;

    @JsonProperty("createUser")
    private Long createUser;

}
